function addExchange(a){ 
		$("#checkEmptyTr").hide();
		var tbl = document.getElementById(a);
		var newRow = tbl.insertRow(tbl.rows.length);
		var c1 = newRow.insertCell(0);
		var c2 = newRow.insertCell(1);
		var c3 = newRow.insertCell(2);
		var c4 = newRow.insertCell(3);
		var c5 = newRow.insertCell(4);
		var c6 = newRow.insertCell(5);
		c1.align="center";
		c6.align="center";
		c4.align="center";
		c5.align="center";
		var nbr = tbl.rows.length++;
		var mainnbr = nbr-2;
		c1.innerHTML = "<b>+</b>";
		c2.innerHTML = "<input type='text' class='x-text x-date' name='datepay[]' onclick='date_picker(this,{noTime:true})'>";
		c3.innerHTML = "<input type='text' name='valueO[]' style='width:120px;' class='x-text x-status' onclick='status_picker(this)'/><select style='width:65px;margin-left:5px;' class='x-select' name='mtypeO[]'><option value='%'>%</option></select>";
		c4.innerHTML = "<input type='text' class='x-text' name='descP[]' style='width:400px;'>";
		c5.innerHTML = "<a  onclick=addExchange('exchange')>[ + ]</a>"; 
		c6.innerHTML = "<a onclick=del_Row('exchange',this)>[ - ]</a>"; 
}

function del_Row(tableID,rowObject){
	document.getElementById(tableID).deleteRow(rowObject.parentElement.parentElement.rowIndex);
}
